package com.chinairi.mall.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinairi.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

@ApiModel(value = "撤销订单实体")
@TableName(value = "CANCEL_ORDER")
public class CancelOrder extends BaseModel {
    /**
     * 主键
     */
    @TableId(value = "OC_ID", type = IdType.NONE)
    @ApiModelProperty(value = "主键")
    private String ocId;

    /**
     * 订单ID
     */
    @TableField(value = "ORDER_ID")
    @ApiModelProperty(value = "订单ID")
    private String orderId;

    /**
     * 状态 0-未审核 1-同意撤销 2-拒绝撤销 3-通知拒绝撤销 4-通知同意撤销
     */
    @TableField(value = "`STATE`")
    @ApiModelProperty(value = "状态 0-未审核 1-同意撤销 2-拒绝撤销 3-通知拒绝撤销 4-通知同意撤销")
    private String state;

    /**
     * 该订单原状态
     */
    @TableField(value = "OLD_STATE")
    @ApiModelProperty(value = "该订单原状态")
    private String oldState;

    /**
     * 接收人ID
     */
    @TableField(value = "RECEIVER_ID")
    @ApiModelProperty(value = "接收人ID")
    private String receiverId;

    /**
     * 接收人
     */
    @TableField(value = "RECEIVER")
    @ApiModelProperty(value = "接收人")
    private String receiver;

    /**
     * 创建人ID
     */
    @TableField(value = "CREATER_ID")
    @ApiModelProperty(value = "创建人ID")
    private String createrId;

    /**
     * 创建人
     */
    @TableField(value = "CREATER")
    @ApiModelProperty(value = "创建人")
    private String creater;

    /**
     * 标题
     */
    @TableField(value = "TITLE")
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 撤销理由
     */
    @TableField(value = "REASON")
    @ApiModelProperty(value = "撤销理由")
    private String reason;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 确认时间
     */
    @TableField(value = "CONFIRM_TIME")
    @ApiModelProperty(value = "确认时间")
    private Date updateTime;

    public static final String COL_OC_ID = "OC_ID";

    public static final String COL_ORDER_ID = "ORDER_ID";

    public static final String COL_STATE = "STATE";

    public static final String COL_OLD_STATE = "OLD_STATE";

    public static final String COL_RECEIVER_ID = "RECEIVER_ID";

    public static final String COL_RECEIVER = "RECEIVER";

    public static final String COL_CREATER_ID = "CREATER_ID";

    public static final String COL_CREATER = "CREATER";

    public static final String COL_TITLE = "TITLE";

    public static final String COL_REASON = "REASON";

    public static final String COL_CREATE_TIME = "CREATE_TIME";

    public static final String COL_CONFIRM_TIME = "CONFIRM_TIME";

    /**
     * 获取主键
     *
     * @return OC_ID - 主键
     */
    public String getOcId() {
        return ocId;
    }

    /**
     * 设置主键
     *
     * @param ocId 主键
     */
    public void setOcId(String ocId) {
        this.ocId = ocId;
    }

    /**
     * 获取订单ID
     *
     * @return ORDER_ID - 订单ID
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 设置订单ID
     *
     * @param orderId 订单ID
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * 获取状态 0-未审核 1-同意撤销 2-拒绝撤销 3-通知拒绝撤销 4-通知同意撤销
     *
     * @return STATE - 状态 0-未审核 1-同意撤销 2-拒绝撤销 3-通知拒绝撤销 4-通知同意撤销
     */
    public String getState() {
        return state;
    }

    /**
     * 设置状态 0-未审核 1-同意撤销 2-拒绝撤销 3-通知拒绝撤销 4-通知同意撤销
     *
     * @param state 状态 0-未审核 1-同意撤销 2-拒绝撤销 3-通知拒绝撤销 4-通知同意撤销
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * 获取该订单原状态
     *
     * @return OLD_STATE - 该订单原状态
     */
    public String getOldState() {
        return oldState;
    }

    /**
     * 设置该订单原状态
     *
     * @param oldState 该订单原状态
     */
    public void setOldState(String oldState) {
        this.oldState = oldState;
    }

    /**
     * 获取接收人ID
     *
     * @return RECEIVER_ID - 接收人ID
     */
    public String getReceiverId() {
        return receiverId;
    }

    /**
     * 设置接收人ID
     *
     * @param receiverId 接收人ID
     */
    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    /**
     * 获取接收人
     *
     * @return RECEIVER - 接收人
     */
    public String getReceiver() {
        return receiver;
    }

    /**
     * 设置接收人
     *
     * @param receiver 接收人
     */
    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    /**
     * 获取创建人ID
     *
     * @return CREATER_ID - 创建人ID
     */
    public String getCreaterId() {
        return createrId;
    }

    /**
     * 设置创建人ID
     *
     * @param createrId 创建人ID
     */
    public void setCreaterId(String createrId) {
        this.createrId = createrId;
    }

    /**
     * 获取创建人
     *
     * @return CREATER - 创建人
     */
    public String getCreater() {
        return creater;
    }

    /**
     * 设置创建人
     *
     * @param creater 创建人
     */
    public void setCreater(String creater) {
        this.creater = creater;
    }

    /**
     * 获取标题
     *
     * @return TITLE - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     *
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取撤销理由
     *
     * @return REASON - 撤销理由
     */
    public String getReason() {
        return reason;
    }

    /**
     * 设置撤销理由
     *
     * @param reason 撤销理由
     */
    public void setReason(String reason) {
        this.reason = reason;
    }

    /**
     * 获取创建时间
     *
     * @return CREATE_TIME - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取确认时间
     *
     * @return CONFIRM_TIME - 确认时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置确认时间
     *
     * @param updateTime 确认时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public CancelOrder() {
    }

    public CancelOrder(String ocId, String orderId, String state, String oldState, String receiverId, String receiver, String createrId, String creater, String title, String reason, Date createTime, Date updateTime) {
        this.ocId = ocId;
        this.orderId = orderId;
        this.state = state;
        this.oldState = oldState;
        this.receiverId = receiverId;
        this.receiver = receiver;
        this.createrId = createrId;
        this.creater = creater;
        this.title = title;
        this.reason = reason;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}